package com.stefan.verify;

public class CheckDefinition implements Comparable<CheckDefinition> {
    private float seq;
    private Class<?> clazz;

    public float getSeq() {
        return seq;
    }

    public void setSeq(float seq) {
        this.seq = seq;
    }

    public Class<?> getClazz() {
        return clazz;
    }

    public void setClazz(Class<?> clazz) {
        this.clazz = clazz;
    }

    @Override
    public int compareTo(CheckDefinition o) {
        return this.seq - o.getSeq() > 0 ? 1 : (this.seq - o.getSeq() < 0 ? -1 : 0);
    }
}
